﻿using Core;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Markup;

namespace HandyWpf.Extensions
{
    [MarkupExtensionReturnType(typeof(IMultiValueConverter))]
    public class MutiValueConverterProviderExtension : AbstractProviderExtension<IMultiValueConverter>, IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            return instance.Convert(values, targetType, parameter, culture);
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
        {
            return instance.ConvertBack(value, targetTypes, parameter, culture);
        }
    }
}
